package com.kaka.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RolePermissionMapper {

    @Delete("delete from role_permission where permissionId=#{pid}")
    int deleteByPid(int pid);

    int insertArr(@Param("rid") int rid, @Param("ids") int[] ids);

    @Delete("delete from role_permission where roleId=#{rid}")
    int deleteByRid(int rid);

    int deleteByRids(@Param("ids") List<Integer> ids);
}
